<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>让 IE7 IE8 支持 CSS3 background-size属性</title>
        <style>
            html {
              height: 100%;
            }
            body {
              height: 100%;
              margin: 0;
              padding: 0;
              background-image: url('img/15008518202_c265dfa55f_h.jpg');
              background-repeat: no-repeat;
              background-size: contain;
              -ms-behavior: url('asserts/ie/backgroundsize.min.htc');
              behavior: url('asserts/ie/backgroundsize.min.htc');
            }
        </style>
    </head>
    <body>
        <h1>让 IE7 IE8 支持 CSS3 background-size属性</h1>
    </body>
</html>